Skip to content

fix(deploy): Authenticate Bot as Git author #938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2023
Merged

Conversation

krizzu
Copy link
Member

@krizzu krizzu commented Mar 13, 2023

Summary

I believe this will fix the deployment.

Comment on lines +153 to +154
git config user.email ${{ secrets.GH_BOT_EMAIL }}
git config user.name ${{ secrets.GH_BOT_NAME }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setting local git name to @AsyncStorageBot

@@ -146,6 +146,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because action checkout action persists token in the local git config, this overrides the default GH token with @AsyncStorageBot's one

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Thanks for fixing it.

@tido64 tido64 linked an issue Mar 13, 2023 that may be closed by this pull request
@krizzu krizzu enabled auto-merge (squash) March 13, 2023 11:15
@krizzu krizzu merged commit 4de4baa into master Mar 13, 2023
@krizzu krizzu deleted the fix/deploy-fix branch March 13, 2023 11:28
@AsyncStorageBot
Copy link
Collaborator

🎉 This PR is included in version 1.17.12 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The automated release is failing 🚨
3 participants